using Photon;
using UnityEngine;

//[RequireComponent(typeof(PhotonView))]
public class OnClickDestroy : Photon.MonoBehaviour
{
	public bool DestroyByRpc;

	private void OnClick()
	{
		/* if (!DestroyByRpc)
		{
			PhotonNetwork.Destroy(base.gameObject);
		}
		else
		{
			Debug.LogError("调用 RPC");
			base.photonView.RPC("DestroyRpc", PhotonTargets.AllBuffered);
		} */
	}

	/* [RPC]
	public void DestroyRpc()
	{
		UnityEngine.Object.Destroy(base.gameObject);
		PhotonNetwork.UnAllocateViewID(base.photonView.viewID);
	} */
}
